<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c"
		   uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>登录页面</title>
	<link rel = "stylesheet" type = "text/css" href = "css/login.css"/>
	<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
	<link href="easyui/themes/default/easyui.css" rel="stylesheet" type="text/css"/>
	<link href="easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
	<script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
	<script src="js/json2.js" type="text/javascript"></script>
	<script src="easyui/jquery.easyui.min.js" type="text/javascript"></script>
  </head>
  <body>
  <input id="idInput" type="hidden" value="company">
     <div id = "main">
     	<div class = "top">
     	<h2 style="float: left; margin-left : 280px;margin-top :88px;">猫拍运营管理系统</h2>
     		<form action="user/login" method="post" name="frmLogin" id="loginForm" class = "loginForm">
     			<p>用户名：<input type="text" name = "merId" class="name"/></p>
     			<p>密&nbsp;码：<input type="password" name = "password" class="name"/></p>
     			<p><img id="Code" src="image.jsp" width="75" height="30" style="display: inline; float: left; margin-left : 70px;"/>
     			<input type="text" name = "userCode" class="check"/>
     			<a class="changepic" id="forGetPassword" href="javascript:selectCode();" style= 'color:pink;text-decoration:underline'>换一张?</a></p>
     			<p>
				<button type="submit" class="dl" >登&nbsp;&nbsp;录</button>
				<input type="reset" name="login" class="cz" value="重置"/>
				</p>
     		</form>
     	</div>
     </div>
     <div id="bg"></div> 
     <script type="text/javascript">
        function selectCode() {
            $('#Code').attr("src", "image.jsp?rand="+Math.random());
		}

		<%
		if (session.getAttribute("LOGIN_KEY")!=null){
		response.sendRedirect("main.jsp");
		}
		%>

		var login_error = "<%=session.getAttribute("login_error")%>";

		if(login_error !=null && login_error!='null'){
			$.messager.alert('Warning',login_error);
		}

	</script>
  </body>
</html>
